import request from '@/utils/request';

//通知公告分页查询
export function queryNoticeList(data) {
	return request({
		method: 'get',
		url: '/sysNotice/query',
		params: data,
	})
}

//新增通知公告
export function addNotice(data) {
	return request({
		method: 'post',
		url: '/sysNotice/add',
		data,
	})
}

//修改通知公告
export function updateNotice(data) {
	return request({
		method: 'post',
		url: '/sysNotice/update',
		data,
	})
}

//删除通知公告
export function deleteNotice(id) {
	return request({
		method: 'get',
		url: '/sysNotice/deleteById/' + id
	})
}

//获取通知公告详情
export function queryNotice(id) {
	return request({
		method: 'get',
		url: '/sysNotice/query/' + id
	})
}

//更新通知公告状态
export function updateNoticeStatus(data) {
	return request({
		method: 'post',
		url: '/sysNotice/isShow',
		data
	})
}